
from pocketflow import Flow
from nodes import ExtractTextNode, GenerateHtmlNode, AnalysisContentNode

def create_flow():
    """Create a flow for processing with Vision API"""
    
    # Create nodes
    extract_text = ExtractTextNode()
    analysis_content = AnalysisContentNode()
    gen_results = GenerateHtmlNode()
    
    # Connect nodes
    extract_text >> analysis_content >> gen_results
    
    # Create and return flow
    return Flow(start=extract_text)
